//
//  PublicRepairModel.m
//  PropertyMananger
//
//  Created by bh on 17/1/22.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "PublicRepairModel.h"

@implementation PhotoMode


@end

@implementation RWorkerMode



@end

@implementation PublicRepairModel

- (NSMutableArray *)photoModeArray{

    if (!_photoModeArray) {
        
        _photoModeArray = [[NSMutableArray alloc]init];
    }
    return _photoModeArray;
}
- (NSMutableArray *)rWorkerModeArray{

    if (!_rWorkerModeArray) {
        
        _rWorkerModeArray = [[NSMutableArray alloc]init];
        
    }
    return _rWorkerModeArray;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"PhotoMode"]) {
        
        for (NSDictionary * dict in value) {

            PhotoMode * photoModel = [[PhotoMode alloc]init];
            [photoModel setValuesForKeysWithDictionary:dict];
            
            [self.photoModeArray addObject:photoModel];
            
        }
    }else if ([key isEqualToString:@"RWorkerMode"]){
    
        DLog(@"%@",[value class]);
        for (NSDictionary * dict in value) {
            DLog(@"%@",dict);
            RWorkerMode * rworkModel = [[RWorkerMode alloc]init];
            [rworkModel setValuesForKeysWithDictionary:dict];
            
            [self.rWorkerModeArray addObject:rworkModel];
            
        }
       
    }

}

@end

